package com.ijiuchuang.jc_localization.contract.tools;

import android.content.Context;

import com.ijiuchuang.jc_localization.base.BasePresenter;
import com.ijiuchuang.jc_localization.base.BaseView;
import com.ijiuchuang.jc_localization.bean.entity.BleDevice;

import java.util.List;

/**
 * Created by Veev on 2016/6/18
 *
 * @link 384506557@qq.com
 */
public interface ToolsRssiContract {

    interface View extends BaseView<Presenter> {
        // do in here
        void openBle();

        void setFabIcon(int iconID);

        void setDatas(List<BleDevice> datas);
        void addDevice(BleDevice device);
        void updateDevice(int position, BleDevice device);
    }

    interface Presenter extends BasePresenter {
        // do in here
        void startScan();
    }

    interface Model {

        interface BleDeviceChangedListener {
            void onCreated(List<BleDevice> list);
            void onUpdated(int position, BleDevice device);
            void onAdd(BleDevice device);
        }

        int getBleEnableRes();
        int getBleDisEnableRes();

        void startScan(BleDeviceChangedListener listener);
        void stopScan();

    }
}
